import * as apiService from '@/services/api'

/**
 * 获取消息通知
 * @returns {Promise<*>}
 *
 */
const getNoticeApi = () => {
  return apiService.post(api.GLOBAL_NOTICE)
};
/**
 * 获取下载文件列表
 * @returns {Promise<*>}
 *
 */
const getDownloadList = () => {
  return apiService.post(api.DOWNLOAD_LIST_API);
};
/**
 * 清除所有文件列表
 * @returns {Promise<*>}
 *
 */
const deleteAll = () => {
  return apiService.post(api.DOWNLOAD_LIST_DELETE_ALL);
};
/**
 * 清除所有文件列表
 * @returns {Promise<*>}
 *
 */
const deleteFile = (param) => {
  return apiService.post(api.DOWNLOAD_LIST_DELETE,param);
};
export {
  getNoticeApi,
  getDownloadList,
  deleteAll,
  deleteFile,

}
